alpha1 = 0
	delay1 = 0
alpha2 = 0
	delay2 = 0
alpha3 = 0
	delay3 = 0
alpha4 = 0
	delay4 = 0

imageNum = .5
delaySpeed = .25
start = 0

function System.splashScreen(imageA, imageB, imageC, speed, delay)
	if  imageNum ~= 5 then
		if speed == nil then
			speed = .5
		end
		if delay == nil then
			delay = 15
		end
		if imageNum ~= 4.5 then
			System.draw()
				screen:clear()
			System.endDraw()
		end
	System.draw()
		screen:blit(0,0, imageB, alpha2)
		screen:blit(10,0, imageA, alpha1)
		screen:blit(0,0, imageC, alpha3)
	System.endDraw()
		if imageNum == .5 then
			alpha1 = alpha1 + speed
			if alpha1 == 255 then
				alpha1 = 255
				imageNum = 1
			end
		end
		if imageNum == 1 then
			delay1 = delay1 + delaySpeed
			if delay1 == delay then
				imageNum = 1.5
			end
		end
		if imageNum == 1.5 then
			alpha1 = alpha1 - speed
			if alpha1 == 0 then
				alpha1 = 0
				imageNum = 2
			end
		end
		if imageNum == 2 then
			alpha2 = alpha2 + speed
			if alpha2 == 255 then
				alpha2 = 255
				imageNum = 2.25
			end
		end
		if imageNum == 2.25 then
			delay2 = delay2 + delaySpeed
			if delay2 == delay then
				imageNum = 2.5
			end
		end
		if imageNum == 2.5 then
			alpha2 = alpha2 - speed
			if alpha2 == 0 then
				alpha2 = 0
				imageNum = 3
			end
		end
		if imageNum == 3 then
			alpha3 = alpha3 + speed
			if alpha3 == 255 then
				alpha3 = 255
				imageNum = 3.25
			end
		end
		if imageNum == 3.25 then
			delay3 = delay3 + delaySpeed
			if delay3 == delay then
				imageNum = 3.5
			end
		end
		if imageNum == 3.5 then
			alpha3 = alpha3 - speed
			if alpha3 == 0 then
				alpha3 = 0
				imageNum = 4
			end
		end
		if imageNum == 4 then
			alpha4 = alpha4 + speed
			if alpha4 == 255 then
				alpha4 = 255
				imageNum = 4.25
			end
		end
		if imageNum == 4.25 then
			delay4 = delay4 + delaySpeed
			if delay4 == delay then
				imageNum = 4.5
			end
		end
		if imageNum == 4.5 then
			delay4 = delay4 - speed
			if alpha4 == 255-speed then
				start = 1
			end
			if alpha4 == 0 then
				alpha4 = 0
				imageNum = 5
			end
		end
	end
end